#ifndef INTERSECTION_SET_H_H
#define INTERSECTION_SET_H_H

#include "common.h"

typedef struct intersectionset 
{
	int element[ARRAY_MAX] ;
	int length ;
}intersectionset ;

void initial_intersectionset( intersectionset* intersection ) ;
void create_intersectionset( intersectionset* intersection , int a[] , int n ) ;
void destroy_intersection( intersectionset * intersection ) ;
int is_intersectionset_empty( intersectionset* intersection ) ;
int is_intersectionset_full( intersectionset* intersection ) ;
int intersectionset_length( intersectionset* intersection ) ;
int is_intersectionset_appear( intersectionset* intersection , int e ) ;
int delete_intersectionset( intersectionset* intersection , int e ) ;
void assign_intersection( intersectionset* intersection_A , intersectionset* intersection_B )  ;
int insert_into_intersectionset( intersectionset* intersection , word element ) ;
void get_intersection( intersectionset* intersection_A , intersectionset* intersection_B ) ;
void display_intersectionset( intersectionset intersection ) ;

#endif